package br.com.lumis.ims.model;

public enum MetricaBalanceador {
	LATENCY("Latency", MetricaStat.MAXIMUM),
	REQUEST_COUNT("RequestCount", MetricaStat.SUM),
	HEALTHY_HOST_COUNT("HealthyHostCount", MetricaStat.SUM),
	UNHEALTHY_HOST_COUNT("UnHealthyHostCount", MetricaStat.SUM),
	ELB_HTTP_4XX("HTTPCode_ELB_4XX", MetricaStat.SUM),
	ELB_HTTP_5XX("HTTPCode_ELB_5XX", MetricaStat.SUM);

	public static final String NAMESPACE = "AWS/ELB";
	private final String metrica;
	private final MetricaStat stat;
	
	MetricaBalanceador(String metrica, MetricaStat stat) {
		this.metrica = metrica;
		this.stat = stat;
	}
	
	public String nomeMetrica() {
		return this.metrica;
	}
	
	public MetricaStat statMetrica() {
		return this.stat;
	}
	
	public String toString() {
		return this.metrica;
	}

}
